#include<stdio.h>
#include<string.h>

int main(void)
{
    int count;
    while (scanf("%d",&count) != EOF)
    {
        char ch[100];

        for (size_t i = 0; i < count; i++)
        {
            scanf("%s",ch);
            if (!strcmp(ch,"bowl"))
            {
                printf("bowl ");
            }
            if (!strcmp(ch,"knife"))
            {
                printf("knife ");
            }
            if (!strcmp(ch,"fork"))
            {
                printf("fork ");
            }
            if (!strcmp(ch,"chopsticks"))
            {
                printf("chopsticks ");
            }
        }
        printf("\n");
        
    }
    
}